
#include <dbghelp.h>
#include <shlwapi.h>

#define MAX_CALLSTACK 1024
void	dump_callstack( CONTEXT *context );
DWORD	excep_filter( LPEXCEPTION_POINTERS lpEP );
void	init_callstack();
void	clean_callstack();

void	push_hmod( HMODULE hmod );
HMODULE pop_hmod();
int		get_mod_stack_size();
HMODULE*get_mod_stack_base();
void	clear_mod_stack();

